import base from './base';
import axios from 'axios'
import qs from 'querystring'


export function Login(data){
   console.log(data)
   return axios.post(base.baseURL+base.login,qs.stringify(data))
}

export function Register(data){
   return axios.post(base.baseURL+base.register,qs.stringify(data))
}
//MIne页面获取用户信息
export function GetUser(){
   return axios.get(base.baseURL+base.user)
}

export function GetJx(){
   return axios.get(base.baseURL+base.jx)
}
export function GetJxs(){
   return axios.get(base.baseURL+base.jxs)
}
export function GetYs(){
   return axios.get(base.baseURL+base.ys)
}
export function GetYss(){
   return axios.get(base.baseURL+base.diet)
}
// 获取点赞头像
export function GetZan(){
   return axios.get(base.baseURL+base.zan)
}
// 获取首页头像
export function GetHome(){
   return axios.get(base.baseURL+base.home)
}
// 获取首页排名
export function GetPaiming(){
   return axios.get(base.baseURL+base.paiming)
}
// 获取首页跑步记录
export function GetRunjilu(){
   return axios.get(base.baseURL+base.runjilu)
}
//Sport页面获取教练信息
export function GetCoach(){
   return axios.get(base.baseURL+base.coachinfo)
   
}

//Course页面课程信息
export function GetCourse(){
   return axios.get(base.baseURL+base.course)
   
}
//动态页面健身圈信息
export function GetItuidao(cs){
   return axios.get(base.baseURL+base.ituidao,{
      params:{id:cs}
   })
}
//动态页面关注信息
export function GetcCncern(){
   return axios.get(base.baseURL+base.concern)
}
//动态页面附近信息
export function GetNearby(){
   return axios.get(base.baseURL+base.nearby)
   
}
//发现页面商城信息
export function GetShop(){
   return axios.get(base.baseURL+base.shop)
   
}
//train页面训练记录信息
export function GetRecord(){
   return axios.get(base.baseURL+base.record)
   
}
